package light.mvc.model.record;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import light.mvc.model.base.IdEntity;
import light.mvc.model.sys.Tuser;
import light.mvc.pageModel.record.Room;
import light.mvc.pageModel.sys.User;

import org.hibernate.validator.constraints.NotBlank;

@SuppressWarnings("serial")
@Entity
@Table(name = "record_room_schedule")
public class TroomSchedule extends IdEntity implements Serializable {
	private String name;
	private Integer seq;
	private Integer isdefault;
	private String description;
 
	private Date start;
	private Date end;
	private Date create_date;
	private Troom room;
	private Tuser user;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "room_id")
	public Troom getRoom() {
		return room;
	}


	public void setRoom(Troom room) {
		this.room = room;
	}
	
	@ManyToOne
	@JoinColumn(name = "user_id")
	public Tuser getUser() {
		return user;
	}

	public void setUser(Tuser user) {
		this.user = user;
	}

	public Date getStart() {
		return start;
	}


	public void setStart(Date start) {
		this.start = start;
	}


	public Date getEnd() {
		return end;
	}


	public void setEnd(Date end) {
		this.end = end;
	}


	public Date getCreate_date() {
		return create_date;
	}


	public void setCreate_date(Date createDate) {
		create_date = createDate;
	}


	public void setCreate_date(Timestamp createDate) {
		create_date = createDate;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSeq() {
		return this.seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getIsdefault() {
		return this.isdefault;
	}

	public void setIsdefault(Integer isdefault) {
		this.isdefault = isdefault;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
